/*=============================================================================*
 *  Copyright 2004 The Apache Software Foundation
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *=============================================================================*/
package topics.expression;


/**
 * This is a basic exception raised by <code>TopicExpressionEngine</code> or
 * <code>TopicExpressionEvaluator</code>.
 */
public class TopicExpressionException
   extends Exception
{
   /**
    * Creates a TopicExpressionException without error message.
    */
   public TopicExpressionException(  )
   {
   }

   /**
    * Creates a TopicExpressionException with a given error message.
    *
    * @param message error message
    */
   public TopicExpressionException( String message )
   {
      super( message );
   }

   /**
    * Creates a TopicExpressionException with a given error message and nested
    * exception.
    *
    * @param message error message
    * @param exception nested exception/
    */
   public TopicExpressionException( String    message,
                                    Throwable exception )
   {
      super( message, exception );
   }

   /**
    * Creates a TopicExpressionException from a nested exception.
    *
    * @param exception nested exception
    */
   public TopicExpressionException( Throwable exception )
   {
      super( exception );
   }
}